/**
 * @author Clark
 * @email haixuanwoTxh@gmail.com
 * @date 2021-10-31
 */

#include <stdio.h>

int my_strlen(char s[])
{
    int i = 0;
    i = 0;

    while (s[i] != '\0')
        ++i;

    return i;
}

int main()
{
    char buf[] = {"tanxiaohai"};
    printf("len[%d]\n", my_strlen(buf));
}

